import { wxRequest } from '@/utils/wxRequest'
const apiMall = 'http://localhost:8080/renren-fast/'

/** ---------------------------------------------------------------------图片上传接口------------------------- **/
const imgUpload = params => wxRequest(params, apiMall + 'upload/imgUpload')
/** ---------------------------------------------------------------------一个测试用的接口-------------- */
const demo = params => wxRequest(params, apiMall + 'app/demo')
/** 登录接口 */
const login = params => wxRequest(params, apiMall + 'app/login')
/** 根据微信小程序登录 */
const loginByCode = params => wxRequest(params, apiMall + 'wechat/login')
export default {
  imgUpload,
  demo,
  login,
  loginByCode
}
